package com.woniu.command.handler;

import com.woniu.adapter.PurchaseAdapter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class PurchaseCommandHandler {
    @Autowired
    private PurchaseAdapter purchaseAdapter;

    public String updatePurchaseStatus(Long code){
        String s = purchaseAdapter.updatePurchaseStatus(code);
        return s;
    }
}
